import http from '@/utils/http'
const env = import.meta.env
const BASE_URL = env.PROD ? `${env.VITE_API_BASE_URL}/api` : '/api'

// /** @desc 图片上传 */
// export function uploadImage(data: { photoImg: File }) {
//   return http.get<ApiRes<any>>(`${BASE_URL}/v1/upload/unionActivity`, data)
// }

// /** @desc 视频上传 */
// export function uploadVideo(data: { photoImg: File }) {
//   return http.get<ApiRes<any>>(`${BASE_URL}/v1/upload/schoolVideo`, data)
// }

/** @desc 图片上传 */
export function uploadImage() {
  return `${BASE_URL}/v1/upload/buyerCircleSc`
}

/** @desc 视频上传 */
export function uploadVideo() {
  return `${BASE_URL}/v1/upload/schoolVideo`
}

/** @desc 编辑器图片上传 */
export function uploadImageTinymce(params: any) {
  return http.post(`${BASE_URL}/v1/upload/unionActivity`, params)
}

/** @desc 编辑器视频上传 */
export function uploadVideoTinymce(params: any) {
  return http.post(`${BASE_URL}/v1/upload/schoolVideo`, params)
}

/** @desc 文件上传 */
export function importConversionArr() {
  return `${BASE_URL}/v1/upload/importConversionArr`
}
